package com.ruoyi.develop.lvDaohuoDetail.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.develop.goodsOrderIn.domain.GoodsOrderIn;
import com.ruoyi.develop.goodsSalebuyall.domain.GoodsSalebuyall;
import com.ruoyi.develop.lvDaohuo.domain.LvDaohuo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 到货明细对象 lv_daohuo_detail
 *
 * @author lmm
 * @date 2024-10-07
 */
public class LvDaohuoDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;


    /**
     * 采购id
     */
    @Excel(name = "采购id")
    private String saleId;

    /**
     * 到货id
     */
    @Excel(name = "到货id")
    private String daohuoId;

    /**
     * 商品id
     */
    @Excel(name = "商品id")
    private String goodId;

    /**
     * 到货数量
     */
    @Excel(name = "到货数量")
    private BigDecimal daohuoCount;

    /**
     * 到货重量
     */
    @Excel(name = "到货重量")
    private BigDecimal daohuoDun;

    /**
     * 到货单价
     */
    private BigDecimal unitPrice;
    /**
     * 到货总价
     */
    private BigDecimal totalPrice;

    /**
     * 质检状态
     */
    private String inspectState;
    /**
     * 质检日期
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd hh:mm:ss")
    private Date inspectDate;
    /**
     * 质检人姓名
     */
    private String inspectName;
    /**
     * 质检报告
     */
    private String inspectReport;
    /**
     * 入库状态
     */
    private String storageState;
    /**
     * 入库日期
     */
    private Date storageDate;


    /** * 产品   */
    private GoodsOrderIn goods;
    private LvDaohuo daohuo;
    private GoodsSalebuyall sale;

    private String arrivalDate;
    private String supplierId;
    private String supplierName;
    private String nos;
    private String  fahuoType;
    private String goodsSaleId;
    private String projectId;
    private String projectNo;

    private String  tuihuoType;


    /** * 产品库存编码   */
    private String  goodsCode;
    /** * 产品名称   */
    private String  goodsName;
    /** * 产品型号   */
    private String  goodModel;
    private BigDecimal  canCount;

    /** * 是否合格   */
    private String  testPass;

    private String zhijianId;
    private String zhijianName;
    private String shouhuoId;
    private String shourenName;
    private String lvBuycreateUsername;
    private String  daohuoName;

    /** * 税率   */
    private BigDecimal taxRate;
    /** * 不含税单价   */
    private BigDecimal unitPriceNoTax;
    /** * 不含税总价   */
    private BigDecimal totalPriceNoTax;
    /** * 单重   */
    private BigDecimal singleWeight;

    public BigDecimal getTaxRate() {
        return taxRate;
    }

    public void setTaxRate(BigDecimal taxRate) {
        this.taxRate = taxRate;
    }

    public BigDecimal getUnitPriceNoTax() {
        return unitPriceNoTax;
    }

    public void setUnitPriceNoTax(BigDecimal unitPriceNoTax) {
        this.unitPriceNoTax = unitPriceNoTax;
    }

    public BigDecimal getTotalPriceNoTax() {
        return totalPriceNoTax;
    }

    public void setTotalPriceNoTax(BigDecimal totalPriceNoTax) {
        this.totalPriceNoTax = totalPriceNoTax;
    }

    public BigDecimal getSingleWeight() {
        return singleWeight;
    }

    public void setSingleWeight(BigDecimal singleWeight) {
        this.singleWeight = singleWeight;
    }

    public String getLvBuycreateUsername() {
        return lvBuycreateUsername;
    }

    public void setLvBuycreateUsername(String lvBuycreateUsername) {
        this.lvBuycreateUsername = lvBuycreateUsername;
    }

    public String getDaohuoName() {
        return daohuoName;
    }

    public void setDaohuoName(String daohuoName) {
        this.daohuoName = daohuoName;
    }

    public String getZhijianId() {
        return zhijianId;
    }

    public void setZhijianId(String zhijianId) {
        this.zhijianId = zhijianId;
    }

    public String getZhijianName() {
        return zhijianName;
    }

    public void setZhijianName(String zhijianName) {
        this.zhijianName = zhijianName;
    }

    public String getShouhuoId() {
        return shouhuoId;
    }

    public void setShouhuoId(String shouhuoId) {
        this.shouhuoId = shouhuoId;
    }

    public String getShourenName() {
        return shourenName;
    }

    public void setShourenName(String shourenName) {
        this.shourenName = shourenName;
    }

    public String getTestPass() {
        return testPass;
    }

    public void setTestPass(String testPass) {
        this.testPass = testPass;
    }

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public BigDecimal getCanCount() {
        return canCount;
    }

    public void setCanCount(BigDecimal canCount) {
        this.canCount = canCount;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodModel() {
        return goodModel;
    }

    public void setGoodModel(String goodModel) {
        this.goodModel = goodModel;
    }

    public String getTuihuoType() {
        return tuihuoType;
    }

    public void setTuihuoType(String tuihuoType) {
        this.tuihuoType = tuihuoType;
    }
    public String getGoodsSaleId() {
        return goodsSaleId;
    }

    public void setGoodsSaleId(String goodsSaleId) {
        this.goodsSaleId = goodsSaleId;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectNo() {
        return projectNo;
    }

    public void setProjectNo(String projectNo) {
        this.projectNo = projectNo;
    }

    public String getFahuoType() {
        return fahuoType;
    }

    public void setFahuoType(String fahuoType) {
        this.fahuoType = fahuoType;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getNos() {
        return nos;
    }

    public void setNos(String nos) {
        this.nos = nos;
    }

    public String getArrivalDate() {
        return arrivalDate;
    }

    public void setArrivalDate(String arrivalDate) {
        this.arrivalDate = arrivalDate;
    }

    public GoodsOrderIn getGoods() {
        return goods;
    }

    public void setGoods(GoodsOrderIn goods) {
        this.goods = goods;
    }

    public LvDaohuo getDaohuo() {
        return daohuo;
    }

    public void setDaohuo(LvDaohuo daohuo) {
        this.daohuo = daohuo;
    }

    public GoodsSalebuyall getSale() {
        return sale;
    }

    public void setSale(GoodsSalebuyall sale) {
        this.sale = sale;
    }

    public String getInspectState() {
        return inspectState;
    }

    public void setInspectState(String inspectState) {
        this.inspectState = inspectState;
    }

    public Date getInspectDate() {
        return inspectDate;
    }

    public void setInspectDate(Date inspectDate) {
        this.inspectDate = inspectDate;
    }

    public String getInspectName() {
        return inspectName;
    }

    public void setInspectName(String inspectName) {
        this.inspectName = inspectName;
    }

    public String getInspectReport() {
        return inspectReport;
    }

    public void setInspectReport(String inspectReport) {
        this.inspectReport = inspectReport;
    }

    public String getStorageState() {
        return storageState;
    }

    public void setStorageState(String storageState) {
        this.storageState = storageState;
    }

    public Date getStorageDate() {
        return storageDate;
    }

    public void setStorageDate(Date storageDate) {
        this.storageDate = storageDate;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;


    /**
     * 采购表
     */
    private GoodsSalebuyall goodsSalebuyall;

    /**
     * 到货
     */
    private LvDaohuo lvDaohuo;

    public GoodsSalebuyall getGoodsSalebuyall() {
        return goodsSalebuyall;
    }

    public void setGoodsSalebuyall(GoodsSalebuyall goodsSalebuyall) {
        this.goodsSalebuyall = goodsSalebuyall;
    }

    public LvDaohuo getLvDaohuo() {
        return lvDaohuo;
    }

    public void setLvDaohuo(LvDaohuo lvDaohuo) {
        this.lvDaohuo = lvDaohuo;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setDaohuoId(String daohuoId) {
        this.daohuoId = daohuoId;
    }

    public String getDaohuoId() {
        return daohuoId;
    }

    public void setGoodId(String goodId) {
        this.goodId = goodId;
    }

    public String getGoodId() {
        return goodId;
    }

    public void setDaohuoCount(BigDecimal daohuoCount) {
        this.daohuoCount = daohuoCount;
    }

    public BigDecimal getDaohuoCount() {
        return daohuoCount;
    }
    public BigDecimal getDaohuoDun() {
        return daohuoDun;
    }
    public void setDaohuoDun(BigDecimal daohuoDun) {
        this.daohuoDun = daohuoDun;
    }
    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public String getSaleId() {
        return saleId;
    }

    public void setSaleId(String saleId) {
        this.saleId = saleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("daohuoId", getDaohuoId())
                .append("goodId", getGoodId())
                .append("daohuoCount", getDaohuoCount())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .append("remark", getRemark())
                .toString();
    }
}
